﻿#ifndef DWGRECT_H
#define DWGRECT_H

#include "dwgobject.h"

class Dwgrect : public DwgObject
{
public:
    explicit Dwgrect(QObject *parent = nullptr);
private:
    QPoint leftupPt,rightdownPt;
    qreal x,y,w,h;

    // DwgObject interface
public:
    void Draw(QPainter *painter);
    void SetData(QPoint pt1,QPoint pt2);
};

#endif // DWGRECT_H
